<template>
  <div class="page-tools">
    <div class="left">
      <div v-if="$slots.left" class="l-container">
        <i class="el-icon-info" />
        <slot name="left" />
      </div>
    </div>
    <div class="right">
      <slot name="right" />
    </div>
  </div>
</template>

<script>
export default {
  name: 'PageTools'
}
</script>

<style lang="scss" scoped>
.page-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  .left {
    .l-container {
      background-color: #faa666;
      border: 1px solid #444;
      padding: 5px;
      display: flex;
      align-items: center;
      .el-icon-info {
        color: cyan;
      }
    }
  }
}
</style>
